<?php

if ($_SESSION['logged']) {
	require('main.php');
} else {
    
    if($logged_in == 2) {
    $smarty->assign('message', "The combination of the username/password provided is incorrect.<br />Please check your input and try again.");
    }
        
	$smarty->display('login.tpl', $_SESSION['uid']);
}
?> 